package com.bigcms.service.impl;

import com.bigcms.domain.Type;
import com.bigcms.mapper.ArtTypeMapper;
import com.bigcms.service.ArtTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ArtTypeServiceImpl implements ArtTypeService {
    @Autowired
    ArtTypeMapper artTypeMapper;
    @Override
    public int addType(Type type) {
        return artTypeMapper.addType(type);
    }

    @Override
    public int editType(Type type) {
        return artTypeMapper.editType(type);
    }

    @Override
    public Type getType(int id) {
        return artTypeMapper.listType(id);
    }

    @Override
    public List<Type> getTypes() {
        return artTypeMapper.listTypes();
    }

    @Override
    public int delType(int id) {
        return artTypeMapper.delType(id);
    }
}
